package com.ruoyi.questionnaire.domain;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 问卷表对象 sm_questionnaire
 * 
 * @author sm
 * @date 2021-05-13
 */
public class Questionnaire extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 问卷名称 */
    @Excel(name = "问卷名称")
    private String title;

    /** 问卷的备注信息 */
    @Excel(name = "问卷的备注信息")
    private String note;

    /** 是否考虑登陆 */
    @Excel(name = "是否考虑登陆")
    private Long ip;

    /** 问卷开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "问卷开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /** 问卷结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "问卷结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /** 问卷访问规则，0不需要密码，1需要密码 */
    @Excel(name = "问卷访问规则，0不需要密码，1需要密码")
    private Integer access;

    /** 问卷密码 */
    @Excel(name = "问卷密码")
    private Long password;

    /** 问卷的访问地址 */
    @Excel(name = "问卷的访问地址")
    private String url;

    /** 创建人 */
    @Excel(name = "创建人")
    private String founder;

    /** 问卷状态 */
    @Excel(name = "问卷状态")
    private Integer state;

    /** logo */
    @Excel(name = "logo")
    private String logo;

    /** 背景图片 */
    @Excel(name = "背景图片")
    private String image;

    /** 是否匿名投票 */
    @Excel(name = "是否匿名投票")
    private Integer anon;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public Long getIp() {
        return ip;
    }

    public void setIp(Long ip) {
        this.ip = ip;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Integer getAccess() {
        return access;
    }

    public void setAccess(Integer access) {
        this.access = access;
    }

    public Long getPassword() {
        return password;
    }

    public void setPassword(Long password) {
        this.password = password;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getFounder() {
        return founder;
    }

    public void setFounder(String founder) {
        this.founder = founder;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public Integer getAnon() {
        return anon;
    }

    public void setAnon(Integer anon) {
        this.anon = anon;
    }

    @Override
    public String toString() {
        return "Questionnaire{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", note='" + note + '\'' +
                ", ip=" + ip +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", access=" + access +
                ", password=" + password +
                ", url='" + url + '\'' +
                ", founder='" + founder + '\'' +
                ", state=" + state +
                ", logo='" + logo + '\'' +
                ", image='" + image + '\'' +
                ", anon=" + anon +
                '}';
    }
}
